﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using HCFramework.API.LINQ;

namespace HCFramework.Product.Payment.Control
{
    public partial class ContactInfo : System.Web.UI.UserControl
    {
        protected void Page_Load(object sender, EventArgs e)
        {

        }

        internal OrderContact Insert(int orderId)
        {
            OrderContact oc = new OrderContact();
            oc.Address = txtAddress.Text;
            oc.Email = txtEmail.Text;
            oc.Name = txtName.Text;
            oc.OrderID = orderId;
            oc.PhoneNumber = txtPhone.Text;
            C.OrderContactController.Insert(oc);
            return oc;
        }
    }
}